namespace Winner.Game.Entity.POCOModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("GameInfo")]
    public partial class GameInfo
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public GameInfo()
        {
            GameList = new HashSet<GameList>();
            OrderInfo = new HashSet<OrderInfo>();
        }

        [Key]
        public int GameID { get; set; }

        [Required]
        [StringLength(32)]
        public string GameName { get; set; }

        public int TypeID { get; set; }

        [StringLength(500)]
        public string GameRemark { get; set; }

        public int AgentID { get; set; }

        public double Price { get; set; }

        public double ZKprice { get; set; }

        public DateTime? GameDate { get; set; }

        public virtual AgentInfo AgentInfo { get; set; }

        public virtual GameType GameType { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<GameList> GameList { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<OrderInfo> OrderInfo { get; set; }
    }
}
